<?php

namespace common\models\user;

use Yii;

/**
 * This is the model class for table "{{%user_publish}}".
 *
 * @property int $id
 * @property int $user_id 用户ID
 * @property int $dynamic_id 动态ID
 * @property int $comment_id 评论ID
 * @property int $reply_id 回复ID
 * @property int $publish_at 发布时间
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class UserPublish extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%user_publish}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['user_id', 'dynamic_id', 'comment_id', 'reply_id', 'publish_at', 'created_at', 'updated_at'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'user_id' => '用户ID',
            'dynamic_id' => '动态ID',
            'comment_id' => '评论ID',
            'reply_id' => '回复ID',
            'publish_at' => '发布时间',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }

}
